package pl.equipo13.p6;

import java.io.*;

import org.antlr.runtime.*;
import org.antlr.runtime.RecognitionException;


public class Procesador {
        public static void main(String args[]){
                try{
                    FileInputStream fis = new FileInputStream(args[0]);
                    ANTLRInputStream input = new ANTLRInputStream(fis);
           			AnaXMLLexer lexer = new AnaXMLLexer(input);
           	        CommonTokenStream tokens = new CommonTokenStream(lexer);
           	        AnaXMLParser parser = new AnaXMLParser(tokens);
           	        parser.entrada();
                }catch (FileNotFoundException fnfe) {
                    System.err.println("No se encontro el fichero");
                } catch (IOException IOe) {
                	System.err.println("Error en la creacion del flujo");
                }catch (RecognitionException ae) {
                    System.err.println(ae.getMessage());
				}
        }
}